home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Re(2): Auto Destruct Objects
- Sent: 6/27/96 11:54 AM
- Received: 6/27/96 12:01 PM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >I guess I wasn't specific enough with my request. It is my impression that
- >native C++ exceptions will auto distruct any stack based objects. The ODF
- >documentation (pg. 307) indicates that heap based objects are also auto
- >distructable. If this is true then do the heap based objects have the same
- >scope as stack based objects with respect to exception handling (i.e. are
- >they
- >deleted when you exit the method)? Also is there any documentation on how to
- >turn off the ODF emulated exceptions and use Metrowerk's?
-
-
- What the documentation is saying is that you can 'new' an auto-destruct
- object (by using the FW_NEW macro) but it will not be destroyed if an
- exception occurs (like with standard C++ exceptions). Only stack based
- auto-destroy objects are deleted (again like with standard C++
- exceptions). ODF emulation follows excatly the standard C++ model.
-
- There is a document called 'ODF vs Native exceptions and RTTI' showing
- you how to turn off ODF emulation and use native exceptions and RTTI.
- This document is on the OpenDoc DR5 CD and the ODF web page.
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-